package com.xyh.qzjservice.service.Impl;

import com.xyh.qzjservice.mapper.QzjMapper;
import com.xyh.qzjservice.service.IQzj;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
public class QzjImpl implements IQzj {

    @Autowired
    private QzjMapper qzjMapper;

    @Override
    public List getSdx(Map map) {
        return qzjMapper.getSdx(map);
    }

    @Transactional
    @Override
    public Map uploadPatinfoNh(Map map) throws Exception {
        qzjMapper.uploadPatinfoNh(map);
        return null;
    }

    @Transactional
    @Override
    public Map uploadFymx(Map map) throws Exception {
        qzjMapper.uploadFymx(map);
        return null;
    }

    @Transactional
    @Override
    public void deletezyjl(Map map) throws Exception {
        qzjMapper.deletezyjl(map);
    }

    @Transactional
    @Override
    public void deletefymx(Map map) throws Exception {
        qzjMapper.deletefymx(map);
    }

    @Transactional
    @Override
    public Map uploadPatinfoNhCy(Map map) throws Exception {
        qzjMapper.uploadPatinfoNhCy(map);
        return null;
    }

    @Transactional
    @Override
    public Map uploadPatinfoNew(Map map) throws Exception {
        qzjMapper.uploadPatinfoNew(map);
        return null;
    }

    @Override
    public List getPatinfo(Map map) throws Exception {
        return qzjMapper.getPatinfo(map);
    }

    @Override
    public List getBc(Map map) throws Exception {
        return qzjMapper.getBc(map);
    }

    @Override
    public List getBcHistory(Map map) throws Exception {
        return qzjMapper.getBcHistory(map);
    }

    @Transactional
    @Override
    public Map cancelBill(Map map) throws Exception {
        qzjMapper.cancelBill(map);
        return null;
    }
}
